package com.linln.modules.member.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.linln.modules.member.domain.MemberRead;


/**
 * @author hct
 * @date 2019/09/12
 */
public interface MemberReadRepository extends JpaRepository<MemberRead, Long> {
	
	   @Transactional
	   @Query(value="select *  from meber_read where member_id = ?1 and type =?2 and typeId=?3",nativeQuery = true)
	   public MemberRead getByMemberIdAndTypeId(Long memberId,Integer type,Long messageId);

}